<template>
	<view class="Notice">
		<u-notice-bar padding="18rpx 32rpx" mode="vertical" :list="noticeList" :duration="list.number" :color="list.FontColor" :bg-color="list.BgColor" font-size="30"></u-notice-bar>
	</view>
</template>
<script>
export default {
	name: 'Notice',
	components: {},
	data() {
		return {
			list: null,
			noticeList: []
		};
	},
	props: {
		config: {
			type: Object //校验类型
			// default: ''
		}
	},
	mounted() {
		var that = this;
		let noticeData = this.config.data;
		if (noticeData.length) {
			noticeData.forEach((item, index) => {
				that.noticeList.push(item.name);
			});
		}
		this.list = this.config;
	},
	methods: {}
};
</script>
<style lang="scss" scoped>
.Notice {
}
</style>
